import {Component, Input} from '@angular/core';

@Component({
  selector: 'app-hero-summary',
  standalone: true,
  imports: [],
  templateUrl: './hero-summary.component.html',
  styleUrl: './hero-summary.component.css'
})
export class HeroSummaryComponent {

  public heroId: number = 0

  @Input()
  set id(heroId: number){
    console.log("英雄编号：" + heroId)
    this.heroId = heroId
  }

}
